//接口文件
import { request } from "./core";
import { URL, METHOD } from "./config";


export default {
    install(Vue) {
        Vue.prototype.$APIClient = this;
    },
    // @param {*}username  
    // @param {*}password 

    login(username, password) {

        return request(METHOD.GET, URL.login, { params: { username: username, password } });
    },
    regiter() {
        return request(METHOD.GET, URL.regiter)
    },
    swiper() {
        console.log("111");
        return request(METHOD.GET, URL.swiper);
    },
    getlist() {
        return request(METHOD.GET, URL.GETLIST);
    },
    shoplist(params) {
        return request(METHOD.GET, URL.SHOPLIST,params);
    },
    getScrollSwiper() {
        return request(METHOD.GET, URL.GETSRCOLLSWIPER,);
    },
    login(params){
        return request(METHOD.GET,URL.login,params)
      },
      ping(params){
          return request (METHOD.GET,URL.PING,params)
      },
      fen(){
        return request (METHOD.GET,URL.fen)
        
      }
}
